<?php

require_once( ORM_DIR.'/extractors/Extractor.php' );

class Field implements Extractor {
	
	private $_fieldName;
	
	public function __construct( $fieldName ) {
		$this->_fieldName = $fieldName;
	}
	
	public function & get( & $storage, array & $fields ) {
		return $fields[ $this->_fieldName ];
	}
	
	public function set( & $storage, array & $fields, $value ) {
		$fields[ $this->_fieldName ] = $value;
	}
}

?>